package com.ymh.spring.advance;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.ymh.spring.advance.config.AirConditionerConfig;
import com.ymh.spring.advance.service.AirConditioner;

public class Application {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
				AirConditionerConfig.class);
		
		AirConditioner airConditioner = (AirConditioner) context.getBean("airCond");
	
		airConditioner.miniTemper();
		
		airConditioner.maxTemper();
		
		context.close();
	}

}
